﻿using System;
using System.Collections.Generic;
using System.Linq;
using Windows.Admin.Domain;

namespace Windows.Admin.Infrastructure.EFCore.Extensions
{
    public static class AppExtension
    {
        public static IQueryable<App> GetBasicApps(this IQueryable<App> query, params int[] types)
        {
            if (types.Length > 0)
                query = query.Where(x => types.Contains(x.Type));
            return query;
        }
    }
}
